<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<f:view>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>New User Registration</title>
	<link rel="shortcut icon" href="images/idenewlogo.png">
	</head>
	<body>
		<h:form id="NewUser">
		<div align="center">
			<h:messages style="color:red"/>
			<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="3" style="align:center;background:silver;">
					<h:outputLabel value="First Name "/>
					<h:inputText value="#{newGmail.firstName}"  id="FirstName" style="width: 191px; "/>
					
					<h:outputLabel value="Email Address** "/>
					<h:inputText value="#{newGmail.userId}"  id="UserName" style="width: 191px; "/>
					
					<h:outputLabel value="Password"/>
					<h:inputSecret value="#{newGmail.password}"  id="Password" redisplay="true" style="width: 191px; "/>
					
					<h:outputLabel value="Re Enter Password"/>
					<h:inputSecret value="#{newGmail.reEnterPassword}"  redisplay="true" id="ReEnterPassword" style="width: 191px; "/>
					
					<h:outputLabel value="Hint Question"/>
					<h:selectOneMenu value="#{newGmail.hitQuestion}" id="HintQuestion">
						<f:selectItem itemValue="What is your pet Name" itemLabel="What is your pet Name?"/>
						<f:selectItem itemValue="What is your favourite color" itemLabel="What is your favourite color?"/>
						<f:selectItem itemValue="What is your teacher Name" itemLabel="What is your teacher Name?"/>
						<f:selectItem itemValue="What is your Favourite Car" itemLabel="What is your Favourite Car?"/>
						<f:selectItem itemValue="What is your Favourite Food" itemLabel="What is your Favourite Food?"/>
						<f:selectItem itemValue="What is your Favourite Game" itemLabel="What is your Favourite Game?"/>
					</h:selectOneMenu>
					
					<h:outputLabel value="Hint Answer"/>
					<h:inputText value="#{newGmail.hintAnswer}" id="HintAnswer" style="width: 191px; "/>
					
					<h:outputLabel value=""/>
					<h:commandButton id="createUserId" value="Create" action="#{newGmail.createNewUser}"/>
					
					<h:outputLabel value=""/>
					<h:commandLink id="GoToLoginPageId" value="GoToLoginPage" action="#{newGmail.goToLoginPage}"/>
			</h:panelGrid>
			<h:panelGroup>
				<h:outputLabel value=""/>
				<h:outputLabel value=""/>
				<h:outputLabel value=""/>
				<h:outputLabel value="**  OnlineIDE does not retain, share, store or use personally identifiable information for any secondary purposes" style="color:brown"/>
			</h:panelGroup>
		</div>	
		</h:form>
	</body>
</html>
</f:view>